<?
include("../include/database.php");
if(isset($_GET['id']) && isset($_GET['hash'])){
    $username = $database->id2username($_GET['id']);
    if ($_GET['hash'] == "1234567890"){
        $database->addUserPoints($username, SMALL_GAME_WIN_CREDIT);
        $newtotal = $database->getUserPoints($username);
        echo "congradulations ".$username.", you have won ".SMALL_GAME_WIN_CREDIT.", QRedits and have a total of ".$newtotal." QRedits!";
    }
}
?>
